<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<div class="subscriptions form">
<?php echo $this->Form->create('Subscription');?>
    <fieldset>
		<legend><?php echo __('Setup Price Plan'); ?></legend>
	<?php
            //pr($terms);
		foreach($terms as $term) {
                    echo $this->Form->input(null, array('label' => $term['SubscriptionTerm']['name'], 'name' => 'data[Subscription]['. $term['SubscriptionTerm']['id'].']', 'value' => sprintf('%0.2f', $term['SubscriptionTerm']['price'])));
                }
	?>
	</fieldset>
 <?php echo $this->Form->end(__('Submit'));?>
</div>
